package test;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class MaptTest2 {
    public static void main(String[] args) {
        //洋文找中文
        Map<String,String> m=new HashMap<>();
        m.put("点头","yes");
        m.put("来","come");
        m.put("去","go");
        m.put("老虎","tiger");
        m.put("猫","cat");
        m.put("男人","man");
        m.put("人类","man");
        Scanner in=new Scanner(System.in);
        String english=in.next();
        String key=null;
        boolean zai=false;
        for (Map.Entry<String,String>entry:m.entrySet()){
            if (english.equals(entry.getValue())) {
                key = entry.getKey();
                System.out.println(key);
                zai=true;
            }
        }
        if(!zai){
            System.out.println("没有找到！");
        }
    }
}
